package com.dj.mingkong.admin.biz.controller.music.vo.request;

import jakarta.validation.constraints.*;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 音乐风格修改VO
 *
 * @author zenglonghui
 * @date: 2022/7/21 10:19
 */
@Data
@Accessors(chain = true)
public class StyleUpdateVo implements Serializable {
    /**
     * 主键
     */
    @NotNull(message = "id can not be null")
    private Long id;

    /**
     * 风格名称
     */
    @NotBlank(message = "name can not be blank")
    @Size(min = 1, max = 18, message = "name invalid")
    @Pattern(regexp = "/^\\S+(\\s+\\S+)*$/", message = "name invalid")
    private String name;

    /**
     * 风格描述
     */
    @Size(max = 480, message = "description invalid")
    @Pattern(regexp = "/^\\S+(\\s+\\S+)*$/", message = "description invalid")
    private String description;

    /**
     * 排序
     */
    @Min(value = 0, message = "sort invalid")
    private Integer sort;

}
